home *** CD-ROM | disk | FTP | other *** search
/ Columbia Kermit / kermit.zip / newsgroups / misc.19970104-19970326 / 000081_news@columbia.edu _Mon Jan 20 13:41:08 1997.msg < prev    next >
Internet Message Format  |  2020-01-01  |  4KB

  1. Return-Path: <news@columbia.edu>
  2. Received: from newsmaster.cc.columbia.edu (newsmaster.cc.columbia.edu [128.59.35.30]) by watsun.cc.columbia.edu (8.8.3/8.8.3) with ESMTP id NAA07018 for <kermit.misc@watsun.cc.columbia.edu>; Mon, 20 Jan 1997 13:41:08 -0500 (EST)
  3. Received: (from news@localhost) by newsmaster.cc.columbia.edu (8.8.3/8.8.3) id NAA03244 for kermit.misc@watsun; Mon, 20 Jan 1997 13:41:07 -0500 (EST)
  4. Path: news.columbia.edu!watsun.cc.columbia.edu!fdc
  5. From: fdc@watsun.cc.columbia.edu (Frank da Cruz)
  6. Newsgroups: comp.protocols.kermit.misc
  7. Subject: Re: kermit hangs on set line ...
  8. Date: 20 Jan 1997 18:41:05 GMT
  9. Organization: Columbia University
  10. Lines: 65
  11. Message-ID: <5c0e81$qvq$1@apakabar.cc.columbia.edu>
  12. References: <5bas0d$oul@madman.ronin.mindspring.com> <5bbbgj$9v0$1@apakabar.cc.columbia.edu> <5bqqpv$hkj@madman.ronin.mindspring.com>
  13. NNTP-Posting-Host: watsun.cc.columbia.edu
  14. Xref: news.columbia.edu comp.protocols.kermit.misc:6433
  15.  
  16. In article <5bqqpv$hkj@madman.ronin.mindspring.com>,
  17. Chuck Mattern <cmattern@mindspring.com> wrote about C-Kermit on Linux:
  18. : In article <5bbbgj$9v0$1@apakabar.cc.columbia.edu>,
  19. :     fdc@watsun.cc.columbia.edu (Frank da Cruz) writes:
  20. :  
  21. : > First please come to:
  22. : > 
  23. : >   http://www.columbia.edu/kermit/
  24. : Went there, got that, built and installed it, same problem.  Tried the
  25. : suggestion from another post and defined NOCOTFMC.  Same result: when
  26. : I enter "set /line /dev/ttyS0" kermit gets the modem, I can see the
  27. : status lights change but kermit hangs.  Issuing ^C gets on with things
  28. : and all seems fine.
  29. : ...
  30. : I have tried "set carrier-watch off" alone and with "set modem type
  31. : usrobotics" and still get the hang condition.  HOWEVER here are some
  32. : new wrinkles: This does not occur with my work machine which has a
  33. : serial card.  My machine at home has on board serial hardware built
  34. : into the motherboard.  BTW the machine at work does not require the
  35. : "set modem type usrobotics" or set carrier-watch off".  Additionally
  36. : kermit does not hang at home if I use "set line /dev/cua0".  Another
  37. : possible difference is the kernel revision, home is 2.0.25 and work is
  38. : 2.0.18, although I don't believe any changes to the serial i/o section
  39. : occurred between these versions.  I would happily use the cua? device
  40. : were it not for the fact that I need to use mgetty which wants the
  41. : ttyS device.
  42. :
  43. Clearly, C-Kermit is stuck in a system call.  You can demonstrate this by
  44. opening up two windows.  In the first window, tell C-Kermit to:
  45.  
  46.   set debug on
  47.   set modem type usr
  48.   set line /dev/ttyS0
  49.  
  50. In the second window:
  51.  
  52.   tail -f debug.log
  53.  
  54. You'll probably see something like:
  55.  
  56.   ttopen alarm=0
  57.  
  58. (which goes into the debug log just before the open() call) and it will just
  59. sit there till you type Ctrl-C, or maybe until the alarm goes off -- you can
  60. set an alarm for SET LINE like this:
  61.  
  62.   set carrier-watch on 20
  63.  
  64. This is supposed to make C-Kermit time out after 20 seconds if the open() call
  65. is not returning due to carrier not being present on the device.
  66.  
  67. In any case, from your description the open() call is not returning, even
  68. though it has succeeded in opening the device.  Evidently it can be
  69. interrupted by SIGINT, after which we find the device is open and perfectly
  70. usable.
  71.  
  72. What can I say, this is either a bug in your version of Linux (or your driver
  73. for ttyS0), or else there is some peculiarity in setting up this device that
  74. I don't know about, and that will need to be addressed in the source code
  75. communications module, ckutio.c.  You or some other Linux expert will have to
  76. take a look, because none of this can be reproduced here (Red Hat 3.0,
  77. kernel 1.2.13).
  78.  
  79. - Frank